const { createProxyMiddleware } = require("http-proxy-middleware");

let processUrl = 'http://localhost:1115/'

module.exports = function (app) {
  app.use(
    "/wmjapi",
    createProxyMiddleware({
      target: processUrl,
      changeOrigin: true,
      pathRewrite: {
        "^/wmjapi/": "/", // rewrite path
      },
    })
  );
};
